// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IAuthorizationService.cs" company="AzureContrib (Open source library http://azurecontrib.codeplex.com)">
//   Microsoft Public License (Ms-PL)
// </copyright>
// <summary>
//   Service to manage autorization to the application
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using Microsoft.IdentityModel.Claims;

namespace AzureContrib.WindowsAzure.AccessControlService
{
	/// <summary>
	/// Service to manage autorization to the application
	/// </summary>
	public interface IAuthorizationService
	{
		/// <summary>
		/// Check access for the given context
		/// </summary>
		/// <param name="context">The current context to authorize.</param>
		/// <returns>True if access is granted according to the context.</returns>
		bool CheckAccess(AuthorizationContext context);
	}
}